package com.ruoyi.memo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 日期数据对象 memo_date_data
 * 
 * @author ruoyi
 * @date 2025-06-10
 */
public class MemoDateData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long dataId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 数据内容 */
    @Excel(name = "数据内容")
    private String dataContent;

    /** 日期(格式:YYYY-MM-DD) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期(格式:YYYY-MM-DD)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dataDate;

    public void setDataId(Long dataId) 
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDataContent(String dataContent) 
    {
        this.dataContent = dataContent;
    }

    public String getDataContent() 
    {
        return dataContent;
    }
    public void setDataDate(Date dataDate) 
    {
        this.dataDate = dataDate;
    }

    public Date getDataDate() 
    {
        return dataDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("userId", getUserId())
            .append("dataContent", getDataContent())
            .append("dataDate", getDataDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
